{include file="admin/inc/header.tpl"}

<div id="content">
<span class="error">{$error.empty}</span>
<form action="/admin/user/adduser" method="post">
    <table border="0" cellpadding="5">
    <tr>
        <td>Username:<sup>*</sup></td>
        <td>
            <input type="text" name="form[username]" value="{$form.username|escape}" />
            <span class="error">{$error.username}</span>
        </td>
    </tr>
    <tr>
        <td>Password:<sup>*</sup></td>
        <td>
            <input type="password" name="form[password]" value="" />
            <span class="error">{$error.password}</span>
        </td>
    </tr>
    <tr>
        <td>Password again:<sup>*</sup></td>
        <td><input type="password" name="form[password_again]" value="" /></td>
    </tr>
    <tr>
        <td>E-mail:<sup>*</sup></td>
        <td>
            <input type="text" name="form[mail]" value="{$form.mail|escape}" />
            <span class="error">{$error.mail}</span>
        </td>
    </tr>
    <tr>
        <td>Gender:<sup>*</sup></td>
        <td>
            <select name="form[sex]">
                <option value="" />Your gender
                <option value="male" {if $form.sex == 'male'}selected{/if} />Male
                <option value="female" {if $form.sex == 'female'}selected{/if} />Female
            </select>
        </td>
    </tr>
    <tr>
        <td>Age:<sup>*</sup></td>
        <td>
            {html_select_date selected_month="$month" selected_year="$year" selected_day="$day" start_year="-60" end_year="-8"}
            <span class="error">{$error.born}</span>
        </td>
    </tr>
    <tr>
        <td>Phone number:<sup>*</sup></td>
        <td>
            <input type="text" name="form[number]" value="{$form.number|escape}" />
            <span class="error">{$error.number}</span>
        </td>
    </tr>
    <tr>
        <td>Country/region:<sup>*</sup></td>
        <td>
            <input type="text" name="form[country]" value="{$form.country|escape}" />
        </td>
    </tr>
    <tr>
        <td>City/other country:<sup>*</sup></td>
        <td><input type="text" name="form[city]" value="{$form.city|escape}" /></td>
    </tr>
    <tr>
        <td>About yourself:</td>
        <td><input type="text" name="form[description]" value="{$form.description|escape}" /></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" name="submit" value="Sign up" /></td>
    </tr>
</table>
</form>
</div>
</body>
</html>